﻿<html>
<head>
<meta http-equiv="Content - Type" content ="text/html; charset=utf -8">
<title>嵌入PHP</title>
</head>
<body>
		<? 
		echo "简短风格：嵌入PHP<br/>";
		?>
		
		<?php
		echo "xml风格: 嵌入PHP<br/>";
		$str = 'php';
		echo "this is a {$str}book<br/>";
		$flag = 5;
		while($flag--){
			echo "this is a $str book<br/>";
		}
		echo __FILE__;
		echo  __LINE__;
		echo "<br/>";
		echo  PHP_VERSION;
		echo "<br/>";
		define('P','3.14159');
		echo  P;
		$r = 4;
		$s = $r * $r * P;
		echo  $s;
		?>
		
		<script language='php'>
				echo "script风格:嵌入PHP <br/>";
		</script>
		
		<%
		echo "asp风格：嵌入PHP'\n'";
		%>
		
		</body>
		</html>